import unittest2
import mock

from main import MainPage

class MainPageTestCase(unittest2.TestCase):
    
    @mock.patch("main.BaseHandler")    
    def test_main_page(self, base_handler):
        base_handler.render = Mock()
        
        main_page = MainPage()
        main_page.get()
        
        base_handler.assert_called_with("index.html", {})